added pages and layout