Dialog added to main window