refactors static pages to remove duplication