added functionality to the broadcast receiver