improve popover positioning