now different balls can provide their height of a display item so that the 'hightlight' algorithm works for all of them
fix issues when the user provide invalid indexes