use $q.when and $q.all to write notes, fix dropbox version confilict