added layout of pages