change the appDelegate