changed some functionality in the grid