Avoid triggering change event during initialization

The switch triggers change event during initialization, which can be tricky to handle if we were to use the change event for invoking ajax for updating the changed value. So, the change event won't get called during the initialization.