Added radiobutton functionality