set alarm and BroadcastReceiver