add category and sub-category titles to correct pages