updated to handle radio button groups which were behaving very differently from its simpler form element counterparts