fixed issue with closing files and saving contents.  also updated file location field name