Save and load data using localStorage