Modify Appdelegate and BeaconMager