implement the distance-to-end display