Added comment draft for getEnvironment
refactor form field rendering