add 2d/3d switch