Moving the activation of the loading status to the ajax.js file.