add animation to change page