routes and localstorage