Resize and browser detection changes