migrate Model to new authoring way
migrate tempalte, js to controller and new authoring model