implement editing of events