fix edit,add,delete  methods