add edit method