edit delete function CMND