Update index method