add popover for menus

- add flag to hide on page click
- otherwise use mouseenter/mouseleave to hide menu
- add global pageClick event