Don't construct main window twice.