Fixed up tablet layout and rotation.