Dismiss popup menus

Explicitely dismiss popups when the content is clicked.

Issue: #29
Hide popups when dismissing

Issue: #29