edit method update data