added ability to edit events