make pages have an optional layout