adding local storage for persistence