generate listId and store in localStorage