 
   # remove all itineraries from the map
   remove_itineraries: =>
+    for view in @views if @views?
+      view?.clean_up(true) 
+      view.remove()
     @$('#itineraries').html('')
-    view?.clean_up(true) for view in @views if @views?
 
   go_to_splash: (event) =>
     # TODO: Place this to the topbar.

    @map = Transit.map
    @map.on 'drag:end', @drag_plan

    @model.on 'geocode geolocate fetch', @fetch_plan
    @model.on 'geocode:error', @geocode_error
    @model.on 'plan:timeout', @timeout_warn
    Transit.events.on 'geocode:fail', @geocode_fail


  reset: =>
    @$('.progress').hide()
    remove_itineraries()
    Transit.errorMessage(null)  # clear the error message

  add_itineraries: (plan) =>
