Integrate graph with page, cleanup