Removed UIApplication class from codes.
Fixed the bug of UI orientation.