Actually hide on popover click outside of popover

Fixes #99
Fix indentation