Made the bind handler function parameters more consistent when calling back from success and error states