     var addRemoveFolderButton:UIBarButtonItem!
     var removeFolderButton:UIBarButtonItem!
     var addFolderButton:UIBarButtonItem!
-    
+  
+    weak var addBookmarksFolderOkAction: UIAlertAction?
+  
     var isEditingInvidivualBookmark:Bool = false
 
     init() {

        switch notification.name {
        case NotificationFirefoxAccountChanged:
            self.reloadData()
            break
        default:
            // no need to do anything at all

        alert.addTextFieldWithConfigurationHandler({(textField: UITextField!) in
            textField.placeholder = "<folder name>"
            textField.secureTextEntry = false
            NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(self.notificationReceived(_:)), name: UITextFieldTextDidChangeNotification, object: textField)
        })
        
        self.presentViewController(alert, animated: true) {}
    }

    func addFolder(alert: UIAlertAction!, alertController: UIAlertController) {
        if let folderName = alertController.textFields?[0].text {
            if let sqllitbk = self.profile.bookmarks as? MergedSQLiteBookmarks {
                sqllitbk.createFolder(folderName).upon { _ in
                    postAsyncToMain {
