edit and update worked successfully