added landscape and portrait orientation