fix redirection after form submit