added pagination for all entities