updating graph html