added local storage to remember unsaved inputs