modify setCookie function
modify getContent function