Improved the controller for the haptic device