moved getLabel into controller as it's not a concern of the list directive