Fixing priority algorithm and UI cleanup of sensor box