refactored TextField, CheckboxField, RadioGroup