     console.log 'analying one drive'
     #chromeTabs.addNewTab({title:"OneDrive",  })
     ipcRenderer.send 'one-drive', ''
-    ipcRenderer.on 'actionReply' , (event, treeView ) ->
-            console.log treeView
+    ipcRenderer.on 'actionReply' , (event, oneDriveData ) ->
+            console.log oneDriveData
             treelist = []
-            treelist.push treeView.tree
+            treelist.push oneDriveData.fs.tree
             $('#tree').treeview({data: treelist})
             chromeTabs.addNewTab($shell_tabs, {title:"OneDrive Activity"})
+            console.log oneDriveData.reg
             fs.readFile(BaseDir + '\\update_graphIndex.html',{encoding:'utf-8'},(error, data) ->
                       console.log data
                       if error

events =  require 'events'
path = require 'path'
fs =  require 'fs'

BaseDir =  path.resolve(__dirname)

$shell_tabs =  $('.chrome-tabs-shell')



tabsEmitter =  new events.EventEmitter()


tabListener = () ->
    tabsEmitter.on 'tab-click', (data) ->
        console.log data

    tabsEmitter.on 'tab-close', (data) ->
        console.log data

# window first pops up
initDisplay = () ->
    chromeTabs.init({$shell: $shell_tabs, tabEmitter: tabsEmitter, minWidth: 45, maxWidth: 160})

    fs.readFile(BaseDir + '\\tabs\\welcome.html',{encoding:'utf-8'},(error, data) ->
            if error
                $('div.viewer').html(error)
            else
                $('div.viewer').html(data)

         )

    chromeTabs.addNewTab($shell_tabs, {title:"Welcome"})

Create_New_Case = () ->
    console.log 'you want to create a new case'


                          $('div.viewer').html(data))


initDisplay()
tabListener()

$('div.viewer').html(getTabHTML($shell_tabs.find('chrome-tab-current').data('uuid')))
