bug: redirect to correct page on non xhr submit. Closes #6