Refactored application layout with partials.