add code for the back button