updated cookie demo