added loading to ajax example