         performSegueWithIdentifier("addRecipientsSegue", sender: self)
     }
     
+    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
+        if let recipientsViewController = segue.destinationViewController as? RecipientViewController {
+            recipientsViewController.delegate = self
+        }
+    }
     
-    func addRecipientsFromSearch(addedRecipients: [Recipient]) {
-        recipients = addedRecipients
+    func addRecipients(addedRecipients: [Recipient]) {
+        self.recipients = addedRecipients
         tableView.reloadData()
-}
+    }
+    
     @IBAction func didTapSendButton(sender: AnyObject) {
 
        let a = APIClient.sharedClient

                println(error)
        }
    }
}


import UIKit

class PreviewViewController: UIViewController, RecipientsViewControllerDelegate {
    
    var recipients = [Recipient]()
    var modules = [ComposerModule]()
