modified GridController to store more info internallly