Added data persistance using localstorage.