finished the edit and update actions