added support for radiogroups