Doing edit method