adding support for new file
adding open and save support