added transitions to toggelSwitch