updated popover position computation