modify templete controller