Adding grid to layout