made polling code common
connect and disconnect of BLE devices
cleaned up model connection + metadata