refresh graph on edit