close menu when page is clicked