Add directive for datagrid & pagination