added table directive in directive factory.