Implemented the save/load feature for text fields