modified PanOrbit a bit