recommit the pagination template