passData method added to the Dialog form.