add grid directive and basic grid template