update templates with endless pagination