Added animation to page transitions