Refactored restart dialogs into common methods