added loading indicator to frame loading