Adds the loading message and spinner template.