support for graph in mainWindow