make adding an event work