setting the controllers view