Added environment edit view, and fixed index view