Improvements to menu functionality

Clicking outside of the menu will hide it