use the loadPopover function