Created component for saving datagrid state