minor changes to browser resizing events