Hide popover when clicked on button or list item