display the current index