change the css to reduce the layout breaking in pages