Refactored header and footer by using partials