update switch color