 		else
 			view = object
 		
-		if i is @listViews.length
+		if i is @views.content.length
 			view.appendTo(@el)
 		else
 			view.el.insertBefore(@listViews[i].el)
-		@listViews.splice(i, 0, view)
-		@views[_.uniqueId('lvi_')] = view
+		@views.content.splice(i, 0, view)
 
 class lrs.LRSView.views.LRSListItemView extends lrs.LRSView
 

class lrs.LRSView.views.LRSListView extends lrs.LRSView

	initialize: (content = null) ->
		@permanentContent = @el.children()
		@permanentViews = _.clone(@views)
		@permanentViewsArray = (view.el[0] for name, view of @permanentViews)
		@setContent(content)
		super()

	setContent: (content) ->
		return if not _.isNull(content) and not _.isArray(content)	
		return if content is null and @content = []
			
		@views = _.clone(@permanentViews)
		@listViews = []
		@el.children().not(@permanentViewsArray).remove()
		
		if content is null

		#console.log @, viewEls
		for view in viewEls
			$view = $(view)
			continue unless $view.attr('data-view')
			info = $view.attr('data-view').split(':')
			$view.removeAttr('data-view')
			#console.log info[0] || info[1], viewEls, '1'
			
			if (info.length == 1)
				name = info[0]
				view = new lrs.LRSView($view, null,  @)
			else
				name = info[1]
				view = new lrs.LRSView.views[info[0]+'View']($view, {subTemplate: info[2]}, @)
				
			if name is 'view'
				@view = view
			else
				if @views[name]
					unless Array.isArray(@views[name])
						@views[name] = [@views[name]]
					@views[name].push(view)
				else
					@views[name] = view

	_createOutlets: ->
		outletEls = @el.find('[data-outlet]')
