change item template directive improved