Pass the environment to the view