change the bluetooth from  thread to service.