Added create event functionality