         switch section {
         case .Account:
             switch AccountRow(rawValue: indexPath.row)! {
-            case .LoginOrLogout:
+            case .Feedly:
                 if CloudAPIClient.isLoggedIn {
                     showLogoutDialog()
                 } else {
                     showLoginViewController()
+                }
+            case .YouTube:
+                if YouTubeAPIClient.isLoggedIn {
+                    showDisonnectYouTubeDialog()
+                } else {
+                    showYouTubeLoginController()
                 }
             }
         case .Behavior:

        presentViewController(ac, animated: true, completion: nil)
    }


    // MARK: - Table view data source


        let oauthvc = FeedlyOAuthViewController()
        navigationController?.pushViewController(oauthvc, animated: true)
    }

    func showYouTubeLoginController() {
        let vc = OAuthViewController(clientId: YouTubeAPIClient.clientId,
                                 clientSecret: YouTubeAPIClient.clientSecret,
                                     scopeUrl: YouTubeAPIClient.scopeUrl,
                                      authUrl: YouTubeAPIClient.authUrl,
                                     tokenUrl: YouTubeAPIClient.tokenUrl,
                                  redirectUrl: YouTubeAPIClient.redirectUrl,
                                  accountType: YouTubeAPIClient.accountType,
                                keyChainGroup: YouTubeAPIClient.keyChainGroup)
        navigationController?.pushViewController(vc, animated: true)
    }

    func showConfirmDialog(title: String, message: String, action: ((UIAlertAction!) -> Void)) {
        let ac = UIAlertController(title: title.localize(),
            message: message.localize(),
            preferredStyle: UIAlertControllerStyle.Alert)
        let okAction = UIAlertAction(title: "OK".localize(), style: UIAlertActionStyle.Default, handler: action)
        let cancelAction = UIAlertAction(title: "Cancel".localize(), style: UIAlertActionStyle.Cancel) { (action) in
        }
        ac.addAction(okAction)
