fixed bug with display of Turn On/Off button