edit function works,need to add brower local storage