update the graphics content