implemented editing an event