All that needs to be changed is to alsodelete this.onDismiss since in the cleanup method we call the onDismiss function if it exists. We don't need to call this.onDismiss() in the handleAccept function, but we do need to delete it.