code cleanup for create and update routines; make queries fire less on validation errors; optimizations for canceling out of forms; added successful message decorations; added warning decorations