popover working partially