Add actions to render_template()