Update layout for pages