updating grid