Added janky code to handle radio buttons