refactor configToForm for radiobutton