allows destroy popover from inside