Move notification code from ESBeacon to ViewController so that user can determine to send the notification or not.