modified the layouts in pages