Modified the layouts for landscape and portrait