added cookies in view