add support for distance in thread view