refactor default template into partials