most of the controller now synched into the model and the ui. a few
todos to work out.