Fixed page view thing to work with rotated device.