set displayIndex