finished controller part for deleteSchedule