trying to add a loading indicator when ajax is loading data. But failed. More investigation is needed.