fixed code to render partials