Add Teacher dialog complete.
Moved utility functions to separate file.