Add grid view directive