save edited contents