[Kinect] edit connects and refaktor code