use modal instead of popover (because of bug in popover)