radio button switch inplace in form building function