add method controlRefactor
replace control with controlRefactor in Client and RobotTest
delete useless old methods and variables