format order history table