fixing layout, adding pages