added LocalBroadcast and Shared Preferences