application redirects to thanks page