Close the menu after an item is clicked