finish addAppointment (maybe has bug..)