added grid and pages