Added support for rotation and resuming Controller activity