moving ui code out of the hydropick.model.algorithms