Now works onload

May need to clean this up a little, but it auto-redirects now by submitting the form