How to reflect each item in the template