update titles and indexes