Show a non-constant, continuous function $f:\bar{D}\rightarrow \bar{D}$ is such that $f(\partial D)=\partial D$ Suppose $\bar{D}= \{z:|z|\leq 1\}$ and assume we have a non-constant, continuous function $f:\bar{D}\rightarrow \bar{D}$, that is holomorphic on the interior of $\bar{D}$ and such that $f(\partial D)\subset \partial D$. 
Show that $f(\partial D)=\partial D$.
Since $f$ is non-constant on $\bar{D}$, it is also non-constant on $\partial D$, because $\partial D$ is the closure of $\bar{D}$ and I think I have to use the fact that $|f|$ attains the max or min on the boundary $\partial D$. Could someone please help me to understand how to do that?

A non-constant holomorphic function is an open mapping, so
$E = f(D) $ is open with $E \subset D$.
If $\partial E \subset \partial D$ then
$$
D \cap \partial E \subset D \cap \partial D = \emptyset
$$
and therefore  (with $A^C$ denoting the complement of $A$ in $\Bbb C$)
$$
 D \setminus E = D \cap E^C 
 = (D \cap \partial E) \cup (D \cap \overline E^C) = D \cap \overline E^C
$$
is an open set, so that
$$
 D = E \cup (D \setminus E)
$$
is a decomposition  of the connected set $D$ into two disjoint
open sets. It follows that one of the sets on the right-hand side
must be empty, and thus $E = D$ and $\partial E = \partial D$.
