Make order details state dependent