CMS-4731 Modal Window - Cancel by clicking outside

Fixed problem with the removed dialogs.