Made the app to work in both landscape and portrait modes