update graphic