Added some new environment features and upated the index controller and view.