Fixed layout to work in both landscape and portrait modes