Updates index and style