Turning off/on second switch based on first switch