node distance on popularity, cursor pointer, clean up