build the model in the views