Environment page front end code