fixed to work even if click was on a child element of the menu item