dynamic grid button generator implemented