re-structuring install broadcast listener registration and unregistration.

the broadcast listeners were register only in onResume(), and they were also unregistration in onPause()