making it possible to use the back button