prepare layout page