change the index to table style