clean up. moved code from client to ui. client no longer creates and destroys ui channels directly. ui lib hooks events and does everything regarding adding and removing. need to move other ui functions to the ui lib in the same way. #73.