change index and styles