Change the order between onInit and onSwitchChange events