Add onInitialized Event to Switches

In case you need to know that a switch has been initialized
before you use it.
Check State of Switch After It's Initialized