refactor the Thermostat Weekly Schedule panel