refactored home page using partials