changed the index and the styles