fix controller & model
update template