refactor static pages spec file