Added some functionality to EnvironmentView.java.