small change concerning the animation,w hen switching templates