Added back-button functionality.