programatically close popover