made the radio buttons work