         tableView.delegate = self
         tableView.dataSource = self
         tableView.registerNib(UINib(nibName: "MentionTableViewCell", bundle: NSBundle(forClass: MentionTableViewCell.self)), forCellReuseIdentifier: MentionCellIdentifier)
+        refreshTableView()
         NSNotificationCenter.defaultCenter().addObserver(self, selector: "textChanged", name: UITextFieldTextDidChangeNotification, object: view)
         NSNotificationCenter.defaultCenter().addObserver(self, selector: "textChanged", name: UITextViewTextDidChangeNotification, object: view)
     }


    private func refreshTableView() {
        tableView?.reloadData()
        tableView?.hidden = userNameMatches.count == 0
    }

    func textChanged() {

    var view: T?
    var tableView: UITableView?
    weak var delegate: MentionComposerDelegate?
    private let originalTextColor: UIColor
    private var mentionRange           = NSRange(location: 0, length: 0)
    private var userNameMatches        = [MentionUserType]()
    private var lengthOfMentionPerId   = [Int : Int]()
    private var requestingMentionUsers = false

    /// Returns the range of the most recently typed character
    private var recentCharacterRange: NSRange {
