move cookies to index page also
clean up cookie handling