reworking the radiogroup class