CMS-1752 Create SaveChangesBeforeCloseDialog for wizard

Refactoring for all apps