use delegate events in modal factory