Saving data locally, on edit