Made distances text and distancesMeter to global