refactored home view to static pages controller