Adds the view and viewmodel