Add loadingDone and fix creating div when showLoadingIndicator is false