Choose resize or orientationchange