graph fix

the graph now updates when changing the url