renamed edit to update