add cookie and data control