linking the views and controllers