Add dialog call into main window