Move table grid to directive