added support for the back button