DM - confirmation dialog DOM added
DM - file beautified
DM - refactor and new functionality added to waitForDownloadNotifier