Refactored layout.erb to use partials