change page htmls for browser compatibility