updated module to use the new view/model api