Adds the view model