fix #718 Touch:Dialog widget and domReference attribute

Fixed by introducing a new attribute in the Dialog widget.