refactoring static pages