Added pagination template