add storage func. using localStorage