Update index and style.