                 })
             }
         })
-        
-    }
-
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
     }
 
 }

                if (!json["error"].boolValue) {
                    print ("MESSAGE SENT")
                    self.message_input.text = ""
                }
                        
            })

        
        self.tableView.registerCellNib(MessageThreadItemView.self)
        
        loadMessages()
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func loadMessages() {
        items.removeAll()
        MessageUtil.sharedInstance.getMessageListForEstate(hsh, uid: id, onCompletion: { (json: JSON) in
            print (json)
            if let results = json.array {
