removed cookies, changed to localStorage