animation when click on the back button