rename index to order; better layout for history table