radio function

Modify codes for radio function and checking