Implemented support for the back button.