Refactor order details view