Code added to show a loading animation when Ajax calls are in progress (not yet working).