disable switch when use schedule is selected