added sync after edit