Close menu when item is clicked