init miniswitch & switchdropdown