adding loading screens to ajax calls