added cookies and index