Refactor message box
Start refactoring dialogs