fixed communication between bluetoothhandler and mainactivity