handled orientationchange more carefully