change link color based on connection quality