build the environment list popup menu dynamically on invocation