added global buffer revert & delete selection mode