close drop-down menu when pause menu is opened