re-added pagination

added pagination, Denis can you verify?