using directive and template for items