Added back button functionality.