recreate grid when routine changes