Enhanced to allow disabling text and label.