add callback for cancelling (well non-confirms) of a dialog