changing status to active and getting list of pages for parent id