Backend for monitor

TODO

 complete UI