update color of border