Properly hide menu when it is toggled and an home button is pressed