add changes for portrait mode