     class @Profile extends Backbone.View
         className: 'database-profile'
         template: Handlebars.compile $('#database_view-profile-template').html()
-
-        initialize: ->
-            @data = {}
-            namespaces.on 'all', @render
-
-        render: =>
+        
+        # Bind listeners and initialize the data of this view
+        initialize: =>
+            @data = {} # This will be used to know whether we need to rerender our view or not
+            namespaces.on 'all', @render # We listen to all namespaces since they can be moved while the user is on this view
+
+        # Render the view
+        render: =>
+            # Initialize the data for this view
             data =
-                num_namespaces: 0
-                num_live_namespaces: 0
-                reachability: true
-                stats_up_to_date: true
-                nshards: 0
-                nreplicas: 0
-                ndatacenters: 0
-
+                num_namespaces: 0 # Number of namespaces
+                num_live_namespaces: 0 # Number of namespaces alived
+                reachability: true # Status of the table
+                nshards: 0 # Number of shards
+                nreplicas: 0 # Number of replicas (numbers of copies of each shards)
+                ndatacenters: 0 # Number of datacenter
+                #stats_up_to_date: true # Not display for now. We should put it back. Issue #1286
+                
+            # Compute the data for this view
             for namespace in namespaces.models
                 if namespace.get('database') is @model.get('id')
                     data.num_namespaces++

        alert_tmpl: Handlebars.compile $('#modify_shards-alert-template').html()

        events: ->
            'click .tab-link': 'change_route'
            'click .close': 'close_alert'
            # operations in the dropdown menu
            'click .operations .rename': 'rename_database'

                        data.num_live_namespaces++
                    data.nshards += namespace_status.nshards
                    data.nreplicas += data.nshards + namespace_status.nreplicas
                    # We should use _.uniq on the datacenters for all the tables, not on each table
                    data.ndatacenters += namespace_status.ndatacenters

            # We update only if the data has changed
            if not _.isEqual @data, data
                @data = data
                @.$el.html @template data

            return @

        # Unbind listeners
        destroy: =>
            namespaces.off 'all', @render

