updated to expand size of grid when selected