load linked pages and fix template for primary category