static page refactor