Added a button to toggle 3d view.