added the enviroment variable to the view