adding local storage persistence