css and js changes for improved display on mobile devices