added break if no item is visible within selectNextItem to prevent endless loop