added possibility to call refresh on the datagrid from outside