proper way to obtain popover element