edit and update