fix bug in update event function
refactor past events class
refactor update and delete event methods to show server feedback