Added static pages controller
refactoring