Revert "include onstatus() and onsuccess()"

This reverts commit 1dcf8cbbcb680e2a892b7f4d28689cd53b3197ff.