             return json
 
         render: =>
-            super()
+            super
 
             return @
 
         destroy: =>
-            @model.off 'change', @render
-            machines.off 'all', @render
+            super
 
 
     class @AddDatabaseModal extends UIComponents.AbstractModal

            namespace_list_element.on 'selected', => callback() for callback in @callbacks

        destroy: =>
             super()


    # Namespace list element
    class @NamespaceListElement extends UIComponents.CheckboxListElement


        # Callback that will be registered: updates the toolbar buttons based on how many namespaces have been selected
        update_toolbar_buttons: =>
            @.$('.btn.remove-namespace').prop 'disabled', @get_selected_namespaces().length < 1

        destroy: =>
            super
            datacenters.off 'all', @update_button_create_namespace
            databases.off 'all', @update_button_create_namespace
            @add_database_dialog.destroy()
            @add_namespace_dialog.destroy()
            @remove_namespace_dialog.destroy()

    class @DatabaseListElement extends UIComponents.CollapsibleListElement
        template: Handlebars.compile $('#database_list_element-template').html()
