added dirs and pages for primary pages