move showLabels function to bottom of file