started using localstorage for auto-saving