before add popover