made an openFile function to start working on the open/save file
functionality