update graph ui