adding create event in a modal