file open and save, null dom issues fixed