Updated appDelegate.m