refactoring sttic pages helper methods