finally finshed the popover selector