fixed layout bug on smaller screens for the html version