added a graph to the form