changing index and style