integration of graph and widgets