setup distance matrix view