Remove unused block code and update undo/redo functionality