The way we change our behavior, thoughts and attitudes is by beholding the One who can change our hearts. Simply changing habits and thinking is merely modifying behavior. If our hearts aren’t changed then it’s literally just modified behavior with a little bit of good morals thrown in.
Beholding Jesus changes you from within the heart causing you to naturally desire the good things of God rather than striving to modify behavior. I’d much rather sit at His feet and allow him to purify my heart than to strive in behavior modification and still not know the One who truly saves. He is the greatest Teacher.