got UploadFile working

added connect to for each function, cleaned up some of the newer
functions