update method to close popover