changed color and clickability by distance