Move UI Model creation out of controller.