modify the AppointmentRestController