added updateEvent and clearCalendar