Implemented a special layout for portrait mode.