adding fixes for portrait orientation