updated index to tabs