remove animation when the page changes