update index context