update index and styles