changes for landscape and portrait layut