static pages. some refactoring