clean up and upload form