add AppDelegate object to detail view to save to core data