fixes selection issue when rapidly clicking the expand/collapse all tabs button