added additional template and js spinner