update index add class