refactored TextField, CheckboxField, RadioGroup, CheckGroup