takes now an object of options for the Dialog, containing two possible callbacks (for confirm and cancel).