add legend to checkboxes