implement upload file to current Dropbox folder and some code cleanup