Dismiss popover by clicking anywhere on the page