Updates to the model. Implemented with angularjs