add index and style