switched to render text instead of redirect_to text