Added ability to edit events.