add some modifications to improve the rendering in mobile