Added support for landscape orientation