set layout for pages