Add better support for starting the app with a rotated device