Make dialogs non-modal. Correct restart.