Refactor home page using partials