update createView method for environmentSummary.java