modular toggle switch
refactor