added some stuff for editing cookies