redoing appointment-dialog js handlers