iBeacon code for viewController class