fixed bug where the griditems were not changed while themechange