add edit to events