changing redirect to form submission