added automatical generate new grids functionality