prevents from closing the menu when clicking on it