change the index display function