Serialize items after editing