refactor for bluetooth test activity