adding a dynamic grid