     app.on 'ready', =>
       app.dock.hide()
 
+      @setupWindow()
       @setupLocalStorage()
       @setupBaseLibrary()
 
-      @initializeWindow()
       unless @fetchLibraryIds()
         @showEditor()
 

        libraryPath = output.slice(output.indexOf('/')).trim()
        activeLibrary = @fetchLibrary @localStorage.getItem('libraries-active-library')

        if libraryPath isnt activeLibrary.path
          Q.all [@killItunes(), @resetLibrary()]
            .then =>
              baseLibrary = path.join(app.getPath('home'), 'Music', 'iTunes')

      @syncLocalStorage(e, data)
      @populateTray()

  setupWindow: ->
    @window = new BrowserWindow
      width: 600
      height: 600
