added pagination server side (and nome client side)