Move the example to use autolayout for proper rotation