moved cookie to the index page