add radio reading code to UI

also a little cleaning up