trying to replicate apple's popover