added functionality for radio buttons