modify layouts for pages