Add loading template and spinner.