Add spinner for loading template