                 opts = {}
 
             @$el.find('.container').addClass('details-open')
-            @details_view.unit = unit
+            @details_view.model = unit
+            unit.fetch(success: =>
+                @details_view.render()
+            )
             @details_view.render()
             if opts.draw_marker
                 unit_list = new models.UnitList [unit]

            @$el.find('.content').css 'max-height': max_height

        render: ->
            data = @unit.toJSON()
            template_string = jade.template 'details', data
            @el.innerHTML = template_string
            @set_max_height()


        initialize: (options) ->
            @parent = options.parent

        close: (event) ->
            event.preventDefault()
