change cookie fuctionality