use ng-file-select directive to handle file selects
allow new files to be written if data doesnt exist