refactored formController with a setModel method
fixed new model button visibility