functionality for mobile and tablet views
small change to infowindow