add toggling functionality for location and activity update services