Add broadcast receiver for main activity