storing settings in cookies