getLabeltext function moved out of update...