fixed all refs to app delegate to use [CBCAppDelegate appDelegate]