update template (pagination, etc.)