Cleaning up page transitions