Refactored ordersForCustomer&admin