added the ajax to control the robot