wrapping the items in template tag