finish templating and partials