Adding animation on back button pressed