check for typeof isLoading == undefined in source tamplete