completed clearCalendar logic