 
 
         expand_tree_in_table: (event) =>
+            console.log 'expand'
             dom_element = @.$(event.target).parent()
             data = dom_element.data('json_data')
             result = @json_to_tree data

                    type = "json"
                else
                    type = "table"

            switch type
                when  'json'
                     @.$('.results').html @json_to_tree @current_result

            'click .jt_arrow': 'toggle_collapse'
            'keypress .jt_editable': 'handle_keypress'
            'blur .jt_editable': 'send_update'
            # For Table view
            'mousedown td': 'handle_mousedown'
            'click .jta_arrow_v': 'expand_tree_in_table'
