updated index and style