Menus now close when anywhere is clicked.

Fixes #231.