update line color function and line prefab