give pagination its own template