switch between portrait and landscape viwer