Modify AppDelegate