Added BroadcastReceiver, changed MainActivity