finished applying grid to pages