update to popover code.