add cookie store function