functionality to create an event was added