add legend support in checkboxes/radio