Rework Environments CRUD, update angularJS