added the function for the saving of the date from all fields on the window one