added loading wait