clean up updateResource in dropbox