added autocomplete for environment selection