disable delete button when no focus