Hide the menu when a link is pressed