redirect to correct uri instead of using form action submit