fixed cookies and color saving