add index and style to it