close popover when clicked outside