refactor static pages to use the application layout // added tests with rspec and capybara