Feature/dialog

created documentation for dialog and changed this.element.off() to this.vents.off() in ui.dialog.js