retrieval of pages in categories implemented plus minor fixes