modify ajax loading callbacks