close popover when clicking outside of it