add option to switch btw 2D and 3D view