Updates to the updateLabel method to support the label "for" attribute.