update index and router