Changed the form post to use ajax.