fix categories, implement pagenation