Hide menu when clicking on its items