added toggle for 3d view