adding ipad + rotation support