correct popover position on fixed el's, refactored popover