Add click listeners to radio buttons to update code