adding index and style