Disabling mode switching in panning in 2d as it is disabled in 3d also. Apparently, it is a not good idea to call modal method from a modal method as the last won't be canceled.