make the back button close the menu