various browser and device fixes