move registering and unregistering BroadcastReceivers to onStart() and onStop()