added support for landscape orientation