Adjust style and index