modifying the calendar functionality