get main window added to plugins