 
     get: (sets) ->
       data = {}
+      actived = models.list.actived sets
       switch sets.method.toLowerCase()
         when 'remove'
-          actived = model.list.actived sets
-          data = model.base.get sets.entry, actived if sets.entry
+          data = models.base.get sets.entry, actived
           data._id = actived.attr 'id'
         when 'active'
-          target = model.list.target sets
-          data = model.base.get sets.entry, target
+          target = actived
+          target = models.list.target sets unless sets.active.index? and actived.length > 0
+          data = models.base.get sets.entry, target
           data._id = target.attr 'id'
       return data
 
     set: (sets, data) ->
-      actived = model.list.actived sets
+      actived = models.list.actived sets
       method = sets.method.toLowerCase()
       switch method
         when 'add', 'insert'

            root.children().attr 'style', style
            style = if target.attr 'style' then target.attr 'style' else ''
            target.attr 'style', "#{style};#{sets.active.style};"
        when 'blur', 'remove'
          root = $ '#' + sets.root
          if sets.active.class


  # User date model
  model: (models) ->
    return if @data
    # custom data model stored method
    stored = (sets, name) =>
      if sets.base and (sets.base.get or sets.base.set)
        name = "#{name}#{@uid()}"
        base = ''
        base += "app.models.#{name}.#{key}=#{func.toString()};" for key, func of sets.base
        @_script += "app.models.#{name}={};#{base}"
        sets.base = name
    if models.base then stored models, 'func'
    else stored sets, name for name, sets of models
    # send data model to client
    @handle (-> app.models models, selname), models: models

  # Respond client
  do: (req, @_buffer) ->
