updated library upload, changed device control to hide controls when in query mode.