working on category pagination