Fix delay between error alert and help alert

Replaced `onDismissAlert` with `onWillDismissAlert` to get rid of the delay between the 2 alerts which looks odd.