         self.list?.items.addObject(item)
         realm.commitWriteTransaction()
         
-        // reload table view data
-        
-        if let name = self.list?.name {
-            let itemPredicate = NSPredicate(format: "list.name = %@", name)
-            self.items = Item.objectsWithPredicate(itemPredicate)
-            println("Item added to list")
-        }
+        self.refreshItemsInList()
         
     }
     

    @IBAction func createItem(segue: UIStoryboardSegue) {
        println("Returned from Create List Segue")
        
        var createItemController = segue.sourceViewController as CreateItemViewController
        
        // create item in memory

        self.performSegueWithIdentifier("addItemSegue", sender: self.addItemBarButtonItem)
    }
    
    // MARK: Helper Methods
    
    func refreshItemsInList() {
        
        // reload table view data
        if let name = self.list?.name {
            
            let itemPredicate = NSPredicate(format: "list.name = %@", name)
            self.items = Item.objectsWithPredicate(itemPredicate)
            println("Item added to list")
            
        }
        
        self.tableView.reloadData()
    }
    
}