Fine-tuned enable/disable behavior of Delete and Clear buttons.