update radio-group function