update index with style