persist routes to localStorage