changing edit to update