Apply UI to portrait & landscape mode: Fix bug 778