Added AJAX-call in Envcontroller.