switch to off mode turns valves off

Now when the mode is switched to off the valves will be turned off.