:toilet: refactor radiobutton control function