Added new YesNo version of the dialog. Also addressed issue with DOM elements not cleaning up after close. closes #1