add compatibility to implicit labels for checkboxes and radio buttons