Environment selection in preferences