Added a loading gif image while ajax requests are in progress.