Added methods to pragmatically enable and disable the toggle button control.