A habit is formed in four stages - observing, absorbing, doing, becoming. Thus a new habit is formed by observing things which revolves around that habit. What's in our sight is what will stay inside our mind. Slowly and gradually it gets absorbed and gets reflected in our doing.