rearranged popover plugin