Moved templates to render functions