mobile/tablet detection and minor tweaks