menu closes and opens on click