before starting the grid widget