Implementet delete and update