changed redirect to render