added loading indicator