Changes to implement full screen mode and support device orientation.