add class and template for radios