add function
add function and radio control