added exception escape to render_view and url_for's