Updated the RootViewController to support device rotation on 5.1 devices