updating color on main page