set edit method