added handler for bluetooth connection