Switched displayIndex calc for roots