adds delete command for undo/redo