got layout of pages to work