took out renderEnvironment from defaultController, moved to environmentController with other environment related logic