Toggle switch base class