fixed cookies to properly save theme