updating changes to cookie