builds out pages