updating appointmentby resizing