     }
     return -1
   }
-  
+
   func fetchServers() {
     servers = Server.allServers()
 
     let max = servers.count == 0 ? 0 : servers.count - 1
     let range = NSMakeRange(0, max)
-    
+
     self.serverTable.insertRowsAtIndexes(NSIndexSet(indexesInRange: range), withAnimation: NSTableViewAnimationOptions.EffectGap)
   }
-  
+
   func selectedServerRow() -> Server? {
     let selectedRow = self.serverTable.selectedRow;
     if selectedRow >= 0 && selectedRow < self.servers.count {

    super.viewDidLoad()
    fetchServers()
  }
  
  func findServerIndex(server: Server) -> Int {
    var idx = 0
    for s in servers {


      let newRowIndex = self.servers.count
      self.servers.append(newServer)

      self.serverTable.insertRowsAtIndexes(NSIndexSet(index: newRowIndex), withAnimation: NSTableViewAnimationOptions.EffectGap)
      Server.saveServers(servers)
    }
  }

  @IBAction func Delete(sender: AnyObject) {
    if let server = selectedServerRow() {
      deleteButton.hidden = true
      self.serverTable.removeRowsAtIndexes(NSIndexSet(index:self.serverTable.selectedRow),
        withAnimation: NSTableViewAnimationOptions.SlideUp)

      let idx = findServerIndex(server)
      servers.removeAtIndex(idx)
      Server.saveServers(servers)
