update routes with index