added category selector with pagination