Save edited data