Add paging and replace underscore by lodash