Orientation change support

Now supports orientation change