create render_content and redirect_to methods