abstracted radiogroup reset code