Switch view on submit.