add AppDelegate modification