Small changes to appDelegate.m