added edit method.....................