moved all popover initialization to one place