link the views with the model