update and Edit