Fix the dialogDidCancel to dialogDidSuccess