added off-click to menu button. Clicking outside the button always closes menu