commit handler creates an appointment