refactored static pages to view