update template page index