Extract graph into it's own file, and extract modal view from graph.