made rawDataIndex initial value affect UI state