changed submit to upload on button