integrate modify appointment into new appointment, close #29