updated bg  color and index