misuse of  global in createappointment, fix household principal not displaying first