change the index of active item table