added loading indicator when refreshing