adding subscribers for dataPoint. Fixing minor bugs for getDeviceInfront