added fuctionality for revoking an order