make popover work