Writing to file when saved button is pressed