change attr to prop for radio button