 
     initialize: ->
       @to = new SearchInputView(el: @$el.find('#to'))
+      @to.val localStorage.to if @localStorageEnabled 
+
       @from = new SearchInputView(el: @$el.find('#from'))
       Reitti.Event.on 'position:change', _.once (position) =>
         @populateFromBox position, =>

        @from.val location.name
        callback()
        
    

      event.preventDefault()
      params = $.param { from: @from.val(), to: @to.val() }

      localStorage.to = @to.val() if @localStorageEnabled 

      # TODO: Move this logic somewhere else
      $.getJSON "/routes?#{params}", (data) ->
        Reitti.Event.trigger 'route:change', data[0]
