apply ajax loading