Refactoring dialogs into includes so they can be reused.