Add rang info painter and fix dragging problems.