refactor static pages