re added code for scheduleviewcontroller