look for "dialog" data, not "ui-dialog"; for old jquery/jqueryui compatibility