fix open close popover