added layout and pages