code update for  item template