fix popover stuff on ipad