keep data persisent using local storage