Implement saving edits