added callback to notify the activity when the async-task controlled by
the fragment terminates