Added save functionality when you open a new file