added loading on submit page, and moved cart clearing to after success rather than before