categories pages and pagination added