add grid directive