update the edit part