store list and categories in local storage