update renderOrders() logic