started doing the events for modals