add support for portrait mode