better orientation change detection for mobile devices