update action for schedules controller
added destroy functionality for schedules