updated to use radiobutton