add loading indicator when waiting template load