Fix the datagrid history session save
Update comments