added edit of events to view