             @remove_namespace_dialog = new NamespaceView.RemoveNamespaceModal
 
             super namespaces, ClusterView.NamespaceListElement, 'tbody.list'
+
+        # Extend the AbstractList.add_element method to bind a callback to each namespace added to the list
+        add_element: (element) =>
+            machine_list_element = super element
+            machine_list_element.off 'selected'
+            machine_list_element.on 'selected', @update_toolbar_buttons
                 
         add_namespace: (event) =>
             log_action 'add namespace button clicked'

            @$modal.modal('hide') if @$modal?

        cancel_modal: (e) ->
            console.log 'clicked cancel_modal'
            @.hide_modal()
            e.preventDefault()


        json_for_template: =>
            json = _.extend super(),
                status: DataUtils.get_machine_reachability(@model.get('id'))
                ip: 'TBD' #TODO
                primary_count: 0
                secondary_count: 0

