         @envs = options.envs
         @pkgs = options.pkgs
         @listenTo(@envs, 'all', () => @render())
-        @listenTo(@pkgs, 'reset', () => @render())
+        @listenTo(@pkgs, 'all', () => @render())
         @render()
 
     render: () ->

    pkgs.fetch(reset: true)

    new EnvsView({el: $('#envs'), envs: envs})
    new SearchView({el: $('#search'), envs: envs})
    new PackagesView({el: $('#pkgs'), envs: envs, pkgs: pkgs})

    $('#settings').click (event) =>

    get_active: () ->
        @_active || @get_default()

    set_active: (name) ->
        @_active = @get_by_name(name)
        @trigger("activate", @_active)

class EnvsView extends Backbone.View
    initialize: (options) ->
